package com.lanou3g.hw0408;


public class Main {
    public static void main(String[] args) {
        Pear pear = new Pear(100, "黄色", "甜的");
        pear.eat();

        Pear pear1 = new Pear();
        pear1.setWeight(50);
        pear1.setColor("橘黄色");
        pear1.setTaste("酸的");
        pear1.eat();


        Duck duck = new Duck("小黄", "黄色", 1000, "公");
        duck.run();

        Duck duck1=new Duck();
        duck1.setName("小毛");
        duck1.setColor("黑色");
        duck1.setWeight(2000);
        duck1.setGender("母");
        duck1.run();

    }
}

